/**
 * Created by Administrator on 2017/6/16.
 */
export default {}.install = (Vue, options = {}) => {
  Vue.directive('dbClick', {
    inserted(el, binding) {
      el.addEventListener('click', e => {
        if(!el.disabled) {
          el.disabled = true;
          let timer = setTimeout( () => {
            el.disabled = false;
          },1000)
        }
      })
    }
  })
}

















